package com.info.zhiduoduo.admin.model.formbean.invoice;

import com.info.zhiduoduo.common.validator.IntIn;

import javax.validation.constraints.Positive;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AddEditInventoryRecordFormBean {

	@ApiModelProperty("记录id, 0:新建 >0:编辑")
	private Integer id;

	@ApiModelProperty("创客id")
	private Integer userid;

	@IntIn(value = {1,2}, message = "请选择发票类型")
	@ApiModelProperty("发票类型: 1:普票 2:专票")
	private Integer invoiceType;

	@IntIn(value = {1,2}, message = "请选择发票版本")
	@ApiModelProperty("版本: 1:一万元版 2:十万元版")
	private Integer amountType;

	@Positive
	@ApiModelProperty("发票数量")
	private Integer amount;
}
